package com.ld.security.server.admin.modules.msg.vo;

import com.ld.security.common.core.base.SuperPo;
import com.ld.security.common.core.base.SuperVo;
import com.ld.security.common.mybatis.anno.SqlKey;
import com.ld.security.common.mybatis.anno.JoinKey;
import com.ld.security.common.mybatis.constant.SqlCondition;
import com.ld.security.server.admin.modules.msg.constant.MsgGroupNewsUserRelConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 我的群组消息
 */
@Data
@JoinKey(
        tableX = "msg_group_news_user_rel a ",
        tableY = "msg_group_news b",
        on="a.news_id = b.id"
)
public class MyGroupMsgVo implements SuperVo,SuperPo {

    @SqlKey(name = "a.id")
    @ApiModelProperty("关联编号")
    private String id;

    @SqlKey(name = "a.user_id")
    @ApiModelProperty("用户编号")
    private String userId;

    @SqlKey(name = "a.group_name")
    @ApiModelProperty("群组名称")
    private String groupName;

    @SqlKey(name = "a.group_id")
    @ApiModelProperty("群组编号")
    private String groupId;

    @SqlKey(name = "a.msg_status")
    @ApiModelProperty("状态")
    private MsgGroupNewsUserRelConstant.msgStatus msgStatus;


    @SqlKey(name = "b.label")
    @ApiModelProperty("标题")
    private String label;

    @ApiModelProperty("内容")
    @SqlKey(name = "b.content")
    private String content;

    @ApiModelProperty("来源用户")
    @SqlKey(name = "b.from_user")
    private String fromUser;

    @ApiModelProperty("来源用户昵称")
    @SqlKey(name = "b.from_user_name")
    private String fromUserName;


    @ApiModelProperty("来源用户头像")
    @SqlKey(name = "b.from_user_logo")
    private String fromUserLogo;


    @ApiModelProperty("目标用户")
    @SqlKey(name = "b.to_user")
    private String toUser;

    @ApiModelProperty("目标用户昵称")
    @SqlKey(name = "b.to_user_name")
    private String toUserName;


    @ApiModelProperty("来源用户头像")
    @SqlKey(name = "b.crt_time")
    private Date crtTime;



}
